﻿using System;

namespace OpenLS.Spreadsheet.Formats.Biff.Records
{
    internal class SXStringRecord : BiffRecord
    {
        private ushort cch;
        private XLUnicodeStringNoCch segment;

        protected override void ReadContent(BiffReaderContext context, int length)
        {
            cch = context.ReadUInt16();
            if (0xFFFF != cch)
            {
                segment = new XLUnicodeStringNoCch();
                segment.Read(context.Reader, cch);
            }

        }

        internal override BiffRecordType RecordType
        {
            get { return BiffRecordType.SXString; }
        }

        internal override void WriteContent(BiffWriterWorkbookContext context)
        {
            throw new NotImplementedException();
        }
    }
}